package com.lsp.microcommon.utils;

public class UserUtils {

    private static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();

    public static void  setUser(Integer id){
        threadLocal.set(id);
    }

    public static Integer getUser(){
        return threadLocal.get();
    }

    public static void removeUser(){
        threadLocal.remove();
    }
}
